package com.ztesoft.huangfu.learning.springboot.springboottransaction.error;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/6/9
 * Time: 15:32
 * Version: 1.0
 * Description:
 **/
public class Error {
    public static void errMethod() {
        System.out.println("error");
        throw new RuntimeException("runtime");
    }

    public static void errMethod2() {
        System.out.println("error");
        throw new MyException("runtime");
    }
}
